#!/bin/bash

# Clean Maven repository (optional, uncomment if needed)
# echo "Cleaning local Maven repository for conflicting dependencies..."
# rm -rf ~/.m2/repository/org/springdoc
# rm -rf ~/.m2/repository/io/swagger

# Clean and build the project skipping tests
echo "Building the application..."
mvn clean install -Dmaven.test.skip=true -U

# Run the application with dev profile
echo "Starting the application..."
java -jar target/roc-admin-dev-0.0.1.jar 